﻿using System.Web.Mvc;
using System.Web.Routing;

namespace Uber.WebUI
{
    public class RouteConfigurator
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            //routes.MapRoute(
            //               "HomeIndexPage",
            //               "Shows/{page}",
            //               new { controller = "Home", action = "Index", page = "1" },
            //               new { page = @"\d{1,6}" }
            //               );


            //routes.MapRoute(
            //   "AboutRoute",
            //   "About",
            //   new { controller = "Home", action = "About" }
            //   );

            //routes.MapRoute(
            //   "RefRoute",
            //   "Ref/{id}",
            //   new { controller = "Home", action = "Ref" },
            //   new { id = @"\d{1,19}" }
            //   );

            routes.MapRoute(
                "Default",                                                // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults
                );




        }
    }
}